package com.wn32.main.demo19;

public class Main1 {
    public static void main(String[] args) {
        int value = getValue(30);
        System.out.println(value);
    }

    public static int getValue(int x) {
        if (x <= 2 && x > 0) {
            return 1;
        }
        return getValue(x - 1) + getValue(x - 2);
    }

}
